<<<<<<< HEAD
// index.js
// 获取应用实例
var app = getApp();
Page({
  data: {
    movies:[  
      {url:'https://st0.dancf.com/gaoding-material/2020-06-08/1591576313-72sfM.jpg?x-oss-process=image/resize,w_608/sharpen,100/interlace,1,image/format,webp'} ,  
      {url:'https://st0.dancf.com/gaoding-material/2020-06-08/1591577334-VYu4J.jpg?x-oss-process=image/resize,w_608/sharpen,100/interlace,1,image/format,webp'} ,  
      {url:'https://st0.dancf.com/gaoding-material/2020-06-07/1591493962-JM2Fa.jpg?x-oss-process=image/resize,w_608/sharpen,100/interlace,1,image/format,webp'} ,  
      {url:'https://st0.dancf.com/gaoding-material/2020-06-08/1591587264-NGmqK.jpg?x-oss-process=image/resize,w_608/sharpen,100/interlace,1,image/format,webp'}   
      ] ,
    motto: 'Hello World',
    userInfo: {},
    hasUserInfo: false,
    canIUse: wx.canIUse('button.open-type.getUserInfo'),
    canIUseGetUserProfile: false,
    canIUseOpenData: wx.canIUse('open-data.type.userAvatarUrl') && wx.canIUse('open-data.type.userNickName') // 如需尝试获取用户信息可改为false
  },
  

  // 事件处理函数
  bindViewTap() {
=======
//index.js
//获取应用实例
const app = getApp()

Page({

  
  data: {
   
    "d1": [
      {
        id: 1,
        title: "01.红色高跟鞋-蔡健雅",
      }
    ],
    "d2":[{
      id:1,
      title:"02.玫瑰-贰佰"
    }],
    "d3": [
      {
        id: 1,
        title: "03.南山南-马頔",
      }
    ],
    "d4": [
      {
        id: 1,
        title: "04.安和桥-宋冬野",
      }
    ],
    "d5": [
      {
        id: 1,
        title: "05.理想三旬-陈鸿宇",
      }
    ],
    "d6": [
      {
        id: 1,
        title: "06.借我-谢春花",
      }
    ],
    "d7": [
      {
        id: 1,
        title: "07.白羊-徐秉龙/沈以诚",
      }
    ],
    "d8": [
      {
        id: 1,
        title: "08.春风十里-鹿先森乐队",
      }
    ],
    "d9": [
      {
        id: 1,
        title: "09.光-陈粒",
      }
    ],
    "d10": [
      {
        id: 1,
        title: "10.下山-要不要买菜",
      }
    ],
    "d11": [
      {
        id: 1,
        title: "11.虚拟-陈粒",
      }
    ],
    "d12": [
      {
        id: 1,
        title: "12.我们的时光-赵雷",
      }
    ],
    "d13": [
      {
        id: 1,
        title: "13.水星记-郭顶",
      }
    ],
    "d14": [
      {
        id: 1,
        title: "14.那是你离开了北京的生活-薛之谦",
      }
    ],
    "d15": [
      {
        id: 1,
        title: "15.云烟成雨-房东的猫",
      }
    ],
    "d16": [
      {
        id: 1,
        title: "16.山海-草东没有派对",
      }
    ],
    "d17": [
      {
        id: 1,
        title: "17.暗示分离-en",
      }
    ],
    "d18": [
      {
        id: 1,
        title: "18.太阳-曲肖冰",
      }
    ],
    "d19": [
      {
        id: 1,
        title: "19.后来的我们-五月天",
      }
    ],
    "d20": [
      {
        id: 1,
        title: "20.杀死那个石家庄人-万能青年旅店",
      }
    ],
    "d21": [
      {
        id: 1,
        title: "21.这一生关于你的风景-枯木逢春",
      }
    ],
    "d22": [
      {
        id: 1,
        title: "22.年少有为-李荣浩",
      }
    ],
    "d23": [
      {
        id: 1,
        title: "23.我的名字-焦迈奇",
      }
    ],
    "d24": [
      {
        id: 1,
        title: "24.那些花儿-朴树",
      }
    ],
    "d25": [
      {
        id: 1,
        title: "25.多想在平静的生活拥抱你-隔壁老樊",
      }
    ],
    "d26": [
      {
        id: 1,
        title: "26.陪你去流浪-薛之谦",
      }
    ],
    "d27": [
      {
        id: 1,
        title: "27.Counting Stars-OneRepublic",
      }
    ],
    "d28": [
      {
        id: 1,
        title: "28.Here With You-Asher Monroe",
      }
    ],
    "d29": [
      {
        id: 1,
        title: "29.Shape of You-Ed Sheeran",
      }
    ],
    "d30": [
      {
        id: 1,
        title: "30.Wolves-Selena Gomez / Marshmello",
      }
    ],
  },
 

    a1: function () {
    wx.playBackgroundAudio({
      dataUrl: 'http://36.102.219.18/amobile.music.tc.qq.com/C400004fS9LN2mFNi0.m4a?guid=4168046760&vkey=8A1AA8C7B05EED9EF145D82A0052E6CDBDC53C166C94C9B9667329219F5465D0C43E588094204DE5040FCF852D733C9BE10EE0D0B27BB545&uin=7366&fromtag=66',
        title: '红色高跟鞋-蔡健雅',
      coverImgUrl:'http://bbra.cn/Uploadfiles/imgs/20110303/fengjin0/030.jpg'})
    },
  a2: function () {
    wx.playBackgroundAudio({
      dataUrl: 'http://isure.stream.qqmusic.qq.com/C400003lRnXi3ScdfJ.m4a?guid=4168046760&vkey=9826584AE32F5AF4C1AA119464314B0071320E1F56F5EB7CF989A33AA63094FA931151F5632FE6BF1092ADD702E6F649797AD8AB9C9BBE46&uin=7366&fromtag=66',
      title: '玫瑰-贰佰'
    })
  },
  a3: function () {
    wx.playBackgroundAudio({
      dataUrl: 'http://ws.stream.qqmusic.qq.com/C400000dSn3j1bjBNm.m4a?guid=4168046760&vkey=0AD739EC76DA0AC523A848BC2CDEC7DF864D7D564F6892305A61AFFBA7CF294651E381A21539B4945978F5885EB8DC4957A71181424CBD95&uin=7366&fromtag=66',
      title: '南山南-马頔'
    })
  },
  a4: function () {
    wx.playBackgroundAudio({
      dataUrl: 'http://ws.stream.qqmusic.qq.com/C400000ky4wc42VVij.m4a?guid=4168046760&vkey=1CA85B9EF200C26A499C220A3ADF09DF3FA53901CA54BE7F0897841771C4070CE157E3D077149AD35D2BC544806C25301B86EFF8888BCC59&uin=7366&fromtag=66',
      title: '安和桥-宋冬野'
    })
  },
  a5: function () {
    wx.playBackgroundAudio({
      dataUrl: 'http://ws.stream.qqmusic.qq.com/C40000370e8B21tiNp.m4a?guid=4168046760&vkey=B3005090A210C556F7E506F6EE983D89E8CE75953E075896249CED111BF381D216BB0E6D9D21ECA0DAC12962E4D7B9A0E182892D87024063&uin=7366&fromtag=66',
      title: '理想三旬-陈鸿宇'
    })
  },
  a6: function () {
    wx.playBackgroundAudio({
      dataUrl: 'http://isure.stream.qqmusic.qq.com/C400001oaqRo0q7Csu.m4a?guid=4168046760&vkey=5FF4E076FF6F9F23E22DBB372238B35B8A74F5F0A3B394325726FC2AF6AF52C137DC9635C1189A03CBB28821BBA444B16E3A96A152B79A4C&uin=7366&fromtag=66',
      title: '借我-谢春花'
    })
  },
  a7: function () {
    wx.playBackgroundAudio({
      dataUrl: 'http://ws.stream.qqmusic.qq.com/C400002Mdh1j2Rl5qQ.m4a?guid=4168046760&vkey=18C06FFE23A73C655C7A61DCA75C5B06F35220817CE355FAC07FAB5E7579C9F149E9BC63B142CD7E054000DD9F3888D93233EC090A30C29F&uin=7366&fromtag=66',
      title: '白羊-徐秉龙/沈以诚'
    })
  },
  a8: function () {
    wx.playBackgroundAudio({
      dataUrl: 'http://isure.stream.qqmusic.qq.com/C4000045TAvF4f9ynC.m4a?guid=4168046760&vkey=4BBA5BBD9F18B9009ECFF48B30C93D5D574002A14A55A7687722303D79E420239018138EA91B88E974F31839457777FDAC2FDB8A1C8B392F&uin=7366&fromtag=66',
      title: '春风十里-鹿先森乐队'
    })
  },
  a9: function () {
    wx.playBackgroundAudio({
      dataUrl: 'http://isure.stream.qqmusic.qq.com/C400000trBUk47EpIL.m4a?guid=4168046760&vkey=44C61BE65A7A72222FB0AE51886F1F95069B956451C295377885EBBE8B1CF4CA0E248DE246C5178074DB1458E2D642C2F4F338E8B7E8588A&uin=7366&fromtag=66',
      title: '光-陈粒'
    })
  },
  a0: function () {
    wx.playBackgroundAudio({
      dataUrl: 'http://ws.stream.qqmusic.qq.com/C400001GAAVj1GjW8F.m4a?guid=4168046760&vkey=233D86901DB2BD5BECF85207243A972124B9471F56EFF6C956CE9997B2E29325D28685C42DA28A0F27B8DA45BFB6944F97A3B38DCB49D48F&uin=7366&fromtag=66',
      title: '下山-要不要买菜'
    })
  },
  b1: function () {
    wx.playBackgroundAudio({
      dataUrl: 'http://ws.stream.qqmusic.qq.com/C400003izAS62hQIxx.m4a?guid=4168046760&vkey=5253E6C2092890348F8C1DDACF233FC7DFBA7915BA8F9BC5997A7CF4356C98E3CAB07CB8B121617A83B49C2878B53D4B2CCF6E10D2280EB3&uin=7366&fromtag=66',
      title: '虚拟-陈粒'
    })
  },
 b2: function () {
    wx.playBackgroundAudio({
      dataUrl: 'http://ws.stream.qqmusic.qq.com/C400002whsFV3XuFSx.m4a?guid=4168046760&vkey=43BDE5629309527E4CD6791EA0D8D89D80D72E1475A34D84BED03A22C0D8949B59B120278F3F307069F68C7E73BC186BE718E745100D6F4E&uin=7366&fromtag=66',
      title: '我们的时光-赵雷'
    })
  },
  b3: function () {
    wx.playBackgroundAudio({
      dataUrl: 'http://isure.stream.qqmusic.qq.com/C400003E5JA43t5qgZ.m4a?guid=4168046760&vkey=326C6FA9E5B56D2308BABA9C209891FB5B1E967A1C397116EC5082BE52D90A515B29FCDB0C9FF7E2E57252231DFA023411070848D0F2EB77&uin=7366&fromtag=66',
      title: '水星记-郭顶'
    })
  },
  b4: function () {
    wx.playBackgroundAudio({
      dataUrl: 'http://isure.stream.qqmusic.qq.com/C400003IP6Sy0MJfs5.m4a?guid=4168046760&vkey=7C9AB506EE0EC6534A83BB58716C44F34DDDD3F30F3BE44A7265CCE1219C5B882AC5BDA72BAE6806B8F8546554092ED0C96B600534384CCA&uin=7366&fromtag=66',
      title: '那是你离开了北京的生活-薛之谦'
    })
  },
  b5: function () {
    wx.playBackgroundAudio({
      dataUrl: 'http://isure.stream.qqmusic.qq.com/C400000iZ0Q94UxGO0.m4a?guid=4168046760&vkey=1558D4841A4C70E3F1B202FB8111A18556F7CC4126EFCB2B5FC1585082E17645F267ADD99CDDC9CE16AB7E545832E5B2583DF66DE61905D1&uin=7366&fromtag=66',
      title: '云烟成雨-房东的猫'
    })
  },
  b6: function () {
    wx.playBackgroundAudio({
      dataUrl: 'http://isure.stream.qqmusic.qq.com/C4000048B5BC2LU86i.m4a?guid=4168046760&vkey=D7639C704BCE7414F7D4E704B5DC32D7D19310F048AEE04A56D7C7EC9573942D920CB25300359D9F5F0E3C759E232AADC774197C99EAE55C&uin=7366&fromtag=66',
      title: '山海-草东没有派对'
    })
  },
  b7: function () {
    wx.playBackgroundAudio({
      dataUrl: 'http://isure.stream.qqmusic.qq.com/C4000028PYV62F9p03.m4a?guid=4168046760&vkey=CE3F3FFEC0EEB7B02DFA004FF5F775063488E5B59EEED2E26B1FBFFA4ABD38EB7AD7FBF8E9749090DAA8F0CD774EDBE45A9912117C32080A&uin=7366&fromtag=66',
      title: '暗示分离-en'
    })
  },
  b8: function () {
    wx.playBackgroundAudio({
      dataUrl: 'http://isure.stream.qqmusic.qq.com/C4000033upXO0xmskX.m4a?guid=4168046760&vkey=8D9549E2A8251C13A5E70DBF626ED43C89E3DF6E31104AD3B3D01721DC4FD317FCBD8B98409086A922A0A193C89F8D37A04E5D334EA3D698&uin=7366&fromtag=66',
      title: '太阳-曲肖冰'
    })
  },
  b9: function () {
    wx.playBackgroundAudio({
      dataUrl: 'http://ws.stream.qqmusic.qq.com/C400002bOGet4GK797.m4a?guid=4168046760&vkey=0F8D47D15294EC99A5B55A7020965445B4E24117D6B7CC14987D7F4DA27CEC7CCF0A902C3F7C7626090DEFB4E142FD6BA952F59F04C2C2AE&uin=7366&fromtag=66',
      title: '后来的我们-五月天'
    })
  },
  b0: function () {
    wx.playBackgroundAudio({
      dataUrl: 'http://isure.stream.qqmusic.qq.com/C400004cWNJi0o3jqV.m4a?guid=4168046760&vkey=DBA03754971979AEC8BC46A1DF41F3C828A3B51C64516C9639DC61F614DBDE5D8BE4764D67F72F34CB9F94F5CE52FAF14BEBBEE392FC8D56&uin=7366&fromtag=66',
      title: '杀死那个石家庄人-万能青年旅店'
    })
  },
  c1: function () {
    wx.playBackgroundAudio({
      dataUrl: 'http://ws.stream.qqmusic.qq.com/C400003jLXeL4UrzJ8.m4a?guid=4168046760&vkey=93BAD6963C940643E5E76C5A2156691B7215A3EC7B6BD4A158221D50B482E2997919F6F80F213667285EE41970D579D417BB11FEC03F1C8B&uin=7366&fromtag=66',
      title: '这一生关于你的风景-枯木逢春'
    })
  },
  c2: function () {
    wx.playBackgroundAudio({
      dataUrl: 'http://isure.stream.qqmusic.qq.com/C400002TRY4a3zfxC8.m4a?guid=4168046760&vkey=57EB39B11F5AE2C9E18BCA9399D8D3E0C3937D2DD37AB5DDADEA25879BAE32649B21751200182362F6A77165B760B24EDEC352FDEB2202C3&uin=7366&fromtag=66',
      title: '年少有为-李荣浩'
    })
  },
  c3: function () {
    wx.playBackgroundAudio({
      dataUrl: 'http://ws.stream.qqmusic.qq.com/C400000SI4lS3DSW63.m4a?guid=4168046760&vkey=24D08376CFF773E0B0312446E22DA64B1808F1B5DE368BFE39AB37204A50B3794627FDF83DAA07DC15B7FA8C0FEC3DCC8C6F4295A5195BE1&uin=7366&fromtag=66',
      title: '我的名字-焦迈奇'
    })
  },
  c4: function () {
    wx.playBackgroundAudio({
      dataUrl: 'http://isure.stream.qqmusic.qq.com/C400001NHMwC2Qa2qo.m4a?guid=4168046760&vkey=A65FAD0BA9ADB71BCD2FB1AE3DA3508DAD81D25433899F5DD8AD8450CDC1B4F1B6A11D9E2D45BE9464E5312676ACB92B986AA2489188AB71&uin=7366&fromtag=66',
      title: '那些花儿-朴树'
    })
  },
c5: function () {
    wx.playBackgroundAudio({
      dataUrl: 'http://isure.stream.qqmusic.qq.com/C400001k3Be610tdON.m4a?guid=4168046760&vkey=499CC10CE156717C5235492D51FC205C43DB5B10D5A281463847B3BC7132363DCDC4FBA4188E6EC931D8F5DEBB5BDB9A21C62368E16976BD&uin=7366&fromtag=66',
      title: '多想在平静的生活拥抱你-隔壁老樊'
    })
  },
  c6: function () {
    wx.playBackgroundAudio({
      dataUrl: 'http://isure.stream.qqmusic.qq.com/C400002zfxmN2e1vLQ.m4a?guid=4168046760&vkey=C22AD9922E8BBF2F2DA8DCC42AC0F314DF6B279ABC754756DBB421F0DCAEBE1C70537D67E3C55B370E4F7844D6A0B9A6FF56BA78EED5CB7A&uin=7366&fromtag=66',
      title: '陪你去流浪-薛之谦'
    })
  },
  c7: function () {
    wx.playBackgroundAudio({
      dataUrl: 'http://isure.stream.qqmusic.qq.com/C400003LQoUN1X3lo3.m4a?guid=4168046760&vkey=263734DB133DB1C34C4C87824FBD39B712958B35A040142D4034281DBCD67C050A43C827900D7D32C60F511C334A31F9AA0516752359CDDA&uin=7366&fromtag=66',
      title: 'Counting Stars-OneRepublic'
    })
  },
  c8: function () {
    wx.playBackgroundAudio({
      dataUrl: 'http://isure.stream.qqmusic.qq.com/C400003hhjQu0eHriO.m4a?guid=4168046760&vkey=6D48947BC72F70035DB9AEF6A6B1F02548494E5AD8654DCAF66F5840C06F9173A2FED8A922A76801AADDEAF52392C3553B2EAE3A6C1E13AB&uin=7366&fromtag=66',
      title: 'Here With You-Asher Monroe'
    })
  },
  c9: function () {
    wx.playBackgroundAudio({
      dataUrl: 'http://ws.stream.qqmusic.qq.com/C400001FZJgW3YxpR6.m4a?guid=4168046760&vkey=1931C3D133FAD781DCE695E8899B33A7C8E4A578604D28354C3CC4649E83C34AEE828BBEA523CD8A61E94914DAFFD6D1CDF27CAF18DAB2E8&uin=7366&fromtag=66',
      title: 'Shape of You-Ed Sheeran'
    })
  },
  c0: function() {
    wx.playBackgroundAudio({
      dataUrl: 'http://ws.stream.qqmusic.qq.com/C4000044Xb2B0ahDHf.m4a?guid=4168046760&vkey=92C8B13CC85EE27644EC6EDB8E71C065439DB4DDC9655B49234EF7813FAC2EA705CF92D6E215B039712B6D12E8D8E30ED759CD0D03CCBC61&uin=7366&fromtag=66',
      title: 'Wolves-Selena Gomez / Marshmello'
    })
  },
  
  //事件处理函数
  bindViewTap: function() {
>>>>>>> 1a8a9bb (Initial Commit)
    wx.navigateTo({
      url: '../logs/logs'
    })
  },
<<<<<<< HEAD
  onLoad() {
    if (wx.getUserProfile) {
      this.setData({
        canIUseGetUserProfile: true
      })
    }
  },
  getUserProfile(e) {
    // 推荐使用wx.getUserProfile获取用户信息，开发者每次通过该接口获取用户个人信息均需用户确认，开发者妥善保管用户快速填写的头像昵称，避免重复弹窗
    wx.getUserProfile({
      desc: '展示用户信息', // 声明获取用户个人信息后的用途，后续会展示在弹窗中，请谨慎填写
      success: (res) => {
        console.log(res)
=======
  onLoad: function () {
    if (app.globalData.userInfo) {
      this.setData({
        userInfo: app.globalData.userInfo,
        hasUserInfo: true
      })
    } else if (this.data.canIUse){
      // 由于 getUserInfo 是网络请求，可能会在 Page.onLoad 之后才返回
      // 所以此处加入 callback 以防止这种情况
      app.userInfoReadyCallback = res => {
>>>>>>> 1a8a9bb (Initial Commit)
        this.setData({
          userInfo: res.userInfo,
          hasUserInfo: true
        })
      }
<<<<<<< HEAD
    })
  },
  getUserInfo(e) {
    // 不推荐使用getUserInfo获取用户信息，预计自2021年4月13日起，getUserInfo将不再弹出弹窗，并直接返回匿名的用户个人信息
    console.log(e)
=======
    } else {
      // 在没有 open-type=getUserInfo 版本的兼容处理
      wx.getUserInfo({
        success: res => {
          app.globalData.userInfo = res.userInfo
          this.setData({
            userInfo: res.userInfo,
            hasUserInfo: true
          })
        }
      })
    }
  },
  getUserInfo: function(e) {
    console.log(e)
    app.globalData.userInfo = e.detail.userInfo
>>>>>>> 1a8a9bb (Initial Commit)
    this.setData({
      userInfo: e.detail.userInfo,
      hasUserInfo: true
    })
  }
})
